<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1,
            maximum-scale=1">
    <link rel="stylesheet" href="/static/lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/css/public.css" media="all">
    <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>

</head>

<body>
    <div class="layuimini-container">
        <div class="layuimini-main">


            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                <legend>{$info.name}--编辑实际工资信息</legend>
            </fieldset>

            <form class="layui-form" action="" id="submitform">

                <div class="layui-form-item layui-hide">
                    <label class="layui-form-label">ID</label>
                    <div class="layui-input-block">
                        <input type="text" name="id" required lay-verify="required" autocomplete="off"
                            class="layui-input" value="{$info.user_id}">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">岗位工资</label>
                    <div class="layui-input-block">
                        <input type="text" name="job_salary" placeholder="请输入岗位工资" value="{$info.job_salary}"
                            lay-verify="required" lay-reqtext="岗位工资不能为空！！" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">薪级工资</label>
                    <div class="layui-input-block">
                        <input type="text" name="job_level_salary" placeholder="请输入薪级工资"
                            value="{$info.job_level_salary}" lay-verify="required" lay-reqtext="薪级工资不能为空！！"
                            class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">保留福利补贴</label>
                    <div class="layui-input-block">
                        <input type="text" name="retention_benefit_subsidy" placeholder="请输入保留福利补贴"
                            value="{$info.retention_benefit_subsidy}" lay-verify="required" lay-reqtext="保留福利补贴不能为空！！"
                            class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">岗位奖励绩效工资</label>
                    <div class="layui-input-block">
                        <input type="text" name="job_reward_performance_salary" placeholder="请输入岗位奖励绩效工资"
                            value="{$info.job_reward_performance_salary}" lay-verify="required"
                            lay-reqtext="岗位奖励绩效工资不能为空！！" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">基本业绩奖励</label>
                    <div class="layui-input-block">
                        <input type="text" name="basic_performance_award" placeholder="请输入基本业绩奖励"
                            value="{$info.job_reward_performance_salary}" lay-verify="required"
                            lay-reqtext="基本业绩奖励不能为空！！" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">特殊岗位津贴</label>
                    <div class="layui-input-block">
                        <input type="text" name="special_post_allowance" placeholder="请输入特殊岗位津贴"
                            value="{$info.special_post_allowance}" lay-verify="required" lay-reqtext="特殊岗位津贴不能为空！！"
                            class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">物业补贴</label>
                    <div class="layui-input-block">
                        <input type="text" name="property_subsidy" placeholder="请输入物业补贴"
                            value="{$info.property_subsidy}" lay-verify="required" lay-reqtext="物业补贴不能为空！！"
                            class="layui-input">
                    </div>
                </div>


                <div class="layui-form-item">
                    <label class="layui-form-label">文明奖</label>
                    <div class="layui-input-block">
                        <input type="text" name="civilization_award" placeholder="请输入文明奖"
                            value="{$info.civilization_award}" lay-verify="required" lay-reqtext="文明奖不能为空！！"
                            class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">独生子女费</label>
                    <div class="layui-input-block">
                        <input type="text" name="one_child_fee" placeholder="请输入独生子女费" value="{$info.one_child_fee}"
                            lay-verify="required" lay-reqtext="独生子女费不能为空！！" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">少数民族补贴</label>
                    <div class="layui-input-block">
                        <input type="text" name="ethnic_minorities_subsidy" placeholder="请输入少数民族补贴"
                            value="{$info.ethnic_minorities_subsidy}" lay-verify="required" lay-reqtext="少数民族补贴不能为空！！"
                            class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">卫生费</label>
                    <div class="layui-input-block">
                        <input type="text" name="public_sanitation_fee" placeholder="请输入卫生费"
                            value="{$info.public_sanitation_fee}" lay-verify="required" lay-reqtext="卫生费不能为空！！"
                            class="layui-input">
                    </div>
                </div>


                <div class="layui-form-item">
                    <label class="layui-form-label">博士补贴</label>
                    <div class="layui-input-block">
                        <input type="text" name="doctor_subsidy" placeholder="请输入博士补贴" value="{$info.doctor_subsidy}"
                            lay-verify="required" lay-reqtext="博士补贴不能为空！！" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">教授补贴</label>
                    <div class="layui-input-block">
                        <input type="text" name="professor_subsidy" placeholder="请输入教授补贴"
                            value="{$info.professor_subsidy}" lay-verify="required" lay-reqtext="教授补贴不能为空！！"
                            class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">租房补贴</label>
                    <div class="layui-input-block">
                        <input type="text" name="rental_subsidy" placeholder="请输入租房补贴" value="{$info.rental_subsidy}"
                            lay-verify="required" lay-reqtext="租房补贴不能为空！！" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">车补</label>
                    <div class="layui-input-block">
                        <input type="text" name="car_supplement" placeholder="请输入车补" value="{$info.car_supplement}"
                            lay-verify="required" lay-reqtext="车补不能为空！！" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">补工资</label>
                    <div class="layui-input-block">
                        <input type="text" name="supplementary_salary" placeholder="请输入补工资"
                            value="{$info.supplementary_salary}" lay-verify="required" lay-reqtext="补工资不能为空！！"
                            class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">住房公积金</label>
                    <div class="layui-input-block">
                        <input type="text" name="housing_provident_fund" placeholder="请输入住房公积金"
                            value="{$info.housing_provident_fund}" lay-verify="required" lay-reqtext="住房公积金不能为空！！"
                            class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">医保金</label>
                    <div class="layui-input-block">
                        <input type="text" name="medical_insurance_fund" placeholder="请输入医保金"
                            value="{$info.medical_insurance_fund}" lay-verify="required" lay-reqtext="医保金不能为空！！"
                            class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">养老保险个人（企业）</label>
                    <div class="layui-input-block">
                        <input type="text" name="endowment_insurance_individual_enterprise" placeholder="请输入养老保险个人（企业）"
                            value="{$info.endowment_insurance_individual_enterprise}" lay-verify="required"
                            lay-reqtext="养老保险个人（企业）不能为空！！" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">养老保险个人</label>
                    <div class="layui-input-block">
                        <input type="text" name="endowment_insurance_individual" placeholder="请输入养老保险个人"
                            value="{$info.endowment_insurance_individual}" lay-verify="required"
                            lay-reqtext="养老保险个人不能为空！！" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">职业年金个人</label>
                    <div class="layui-input-block">
                        <input type="text" name="occupational_annuity_individual" placeholder="请输入职业年金个人"
                            value="{$info.occupational_annuity_individual}" lay-verify="required"
                            lay-reqtext="职业年金个人不能为空！！" class="layui-input">
                    </div>
                </div>


                <div class="layui-form-item">
                    <label class="layui-form-label">扣个人所得税</label>
                    <div class="layui-input-block">
                        <input type="text" name="occupational_annuity_individual" placeholder="请输入扣个人所得税"
                            value="{$info.occupational_annuity_individual}" lay-verify="required"
                            lay-reqtext="扣个人所得税不能为空！！" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">扣房租</label>
                    <div class="layui-input-block">
                        <input type="text" name="deduction_of_rent" placeholder="请输入扣房租"
                            value="{$info.deduction_of_rent}" lay-verify="required" lay-reqtext="扣房租不能为空！！"
                            class="layui-input">
                    </div>
                </div>


                <div class="layui-form-item">
                    <label class="layui-form-label">扣物业</label>
                    <div class="layui-input-block">
                        <input type="text" name="withholding_property" placeholder="请输入扣物业"
                            value="{$info.withholding_property}" lay-verify="required" lay-reqtext="扣物业不能为空！！"
                            class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">扣水电</label>
                    <div class="layui-input-block">
                        <input type="text" name="deduction_of_hydropower" placeholder="请输入扣水电"
                            value="{$info.deduction_of_hydropower}" lay-verify="required" lay-reqtext="扣水电不能为空！！"
                            class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">扣工资</label>
                    <div class="layui-input-block">
                        <input type="text" name="deduction_of_wages" placeholder="请输入扣水电"
                            value="{$info.deduction_of_wages}" lay-verify="required" lay-reqtext="扣水电不能为空！！"
                            class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">取暖费</label>
                    <div class="layui-input-block">
                        <input type="text" name="heating_fee" placeholder="请输入取暖费"
                            value="{$info.heating_fee}" lay-verify="required" lay-reqtext="取暖费不能为空！！"
                            class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">目标考核奖</label>
                    <div class="layui-input-block">
                        <input type="text" name="target_assessment_award" placeholder="请输入目标考核奖"
                            value="{$info.target_assessment_award}" lay-verify="required" lay-reqtext="目标考核奖不能为空！！"
                            class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">全国文明城市奖</label>
                    <div class="layui-input-block">
                        <input type="text" name="national_civilized_city_award" placeholder="请输入全国文明城市奖"
                            value="{$info.national_civilized_city_award}" lay-verify="required" lay-reqtext="全国文明城市奖不能为空！！"
                            class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">绩效工资</label>
                    <div class="layui-input-block">
                        <input type="text" name="merit_pay" placeholder="请输入绩效工资"
                            value="{$info.merit_pay}" lay-verify="required" lay-reqtext="绩效工资不能为空！！"
                            class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
                        <button type="reset" class="layui-btn
                                layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>

    <script src="/static/lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
    <!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
    <script>
        layui.use(['form', 'layedit', 'laydate'], function () {
            var form = layui.form
                , layer = layui.layer
                , layedit = layui.layedit
                , laydate = layui.laydate;

            //监听提交
            form.on('submit(demo1)', function (data) {
                $.ajax({
                    data: $('#submitform').serialize(),//json数据格式
                    url: "{:url('index/RealSalary/editPost')}",
                    type: 'post',
                    success: function (res) {
                        if (res.code == 1) {
                            layer.msg(res.msg);
                            setTimeout(function () {
                                location.href = res.url;
                                window.parent.location.reload();
                            }, 1000)
                        } else {
                            layer.msg(res.msg);
                        }
                    }
                });

                return false;
            });




        });
    </script>
</body>

</html>